package com.GuArt.live.controller;


import com.GuArt.user.inter.IUserRPCService;
import com.GuArt.user.inter.com.GuArt.user.dto.UserDTO;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {

    @DubboReference
    public IUserRPCService userRPCService;

    @RequestMapping("/queryUser")
    public UserDTO getUserByID(Long userId){
        return userRPCService.getUserByID(userId);
    }

}
